package com.accp.vehiclecare.action.syhaction;

import com.accp.vehiclecare.biz.syhbiz.VehicleBiz;
import com.accp.vehiclecare.vo.syhvo.UservehicleVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("api/vehicle")
public class VehicleAction {

    @Autowired
    private VehicleBiz biz;

    @GetMapping
    private List<UservehicleVo> queryAll(){
        return biz.queryAll();
    }
}
